package com.zretc.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.zretc.entity.Employee;
/**
 * 暂时没有使用，不用管
 * value = "empdao"  是 bean的名字
 * @author admin
 * 
 *
 */
@Repository(value = "empdao")
public class EmployeeDaoImpl implements EmployeeDao {

	// 返回一个Employee就可以了
	//需要注入一个Employee对象
	//给当前EmployeeDaoImpl，注入一个对象Employee
	@Autowired
	//按照名字来做注入 @Qualifier 找e1
	//@Qualifier(value = "e1")
	private Employee emp ;

	@Override
	public Employee getEmployee() {
		// TODO Auto-generated method stub
		return emp;
	}

	/**
	 * @return the emp
	 */
	public Employee getEmp() {
		return emp;
	}

	/**
	 * @param emp the emp to set
	 */
	public void setEmp(Employee emp) {
		this.emp = emp;
	}


}
